import request from "../utils/axios";

export const getSeatByRoom = (data:any) => {
    return request.get(`/api/seat/getSeatByRoom/${data.roomId}`)
}

export const updateSeatStatus = (data:any) => {
    return request.get(`/api/seat/updateSeatStatus/${data.roomId}/${data.rowId}/${data.colId}/${data.seatStatus}`)
}

export const getSeatBySchedule = (data:any) => {
    return request.get(`/api/seatSchedule/getSeatBySchedule/${data.scheduleId}`)
}

export const getSeatChart = (data:any) => {
    return request.post(`/api/seat/getSeatChart`,data)
}
